From: xjzsq Date: Sat, 14 Dec 2024 18:07:12 +0000 (+0800) Subject: Fix a bug preventing sync root in folder on drive roots X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~30^2^2~181^2 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=3dfba6bf79a5f77d07d567bf23eb821dbb881b12;p=nextcloud-desktop.git Fix a bug preventing sync root in folder on drive roots Fixes: Signed-off-by: xjzsq --- diff --git a/src/common/vfs.cpp b/src/common/vfs.cpp index 69e51be50..4f22bfedb 100644 --- a/src/common/vfs.cpp +++ b/src/common/vfs.cpp @@ -71,7 +71,7 @@ Result Vfs::checkAvailability(const QString &path, Vfs::Mode mode #ifdef Q_OS_WIN if (mode == Mode::WindowsCfApi) { const auto info = QFileInfo(path); - if (QDir(info.canonicalPath()).isRoot()) { + if (QDir(info.canonicalFilePath()).isRoot()) { return tr("The Virtual filesystem feature does not support a drive as sync root"); } const auto fs = FileSystem::fileSystemForPath(info.absoluteFilePath());